package com.rd.student.jiaji.class4.suyan.zrrd.day12;

public class Grand {
    public static void main(String[] args) {
        String str="1234567891234567898";
        handle(str);
    }
   public static int[] handle(String str){
        int[] result=new int[10];
        char a='0';
        for (int i=0;i<10;i++){
            int count=0;
           for (char c:str.toCharArray()){
               if (a==c){
                   count++;
               }
           }
            System.out.println(a+""+count);
           result[i]=count;
           a=(char)(a+1);
        }
        return result;
   }

}
